package com.m.system.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.m.system.domain.SysMenuEntity;

import java.util.List;


/**
 * 菜单权限表 - DAO接口
 * @author monxz
 * @version 2021-01-29
 */
@Mapper
public interface SysMenuMapper{
	
	SysMenuEntity  get(SysMenuEntity  sysMenuEntity);
	
	List<SysMenuEntity>  getList(SysMenuEntity  sysMenuEntity);
	
	Integer insert(SysMenuEntity  sysMenuEntity);
	
	Integer update(SysMenuEntity  sysMenuEntity);
	
	Integer delete(String menuId);
	
	//逻辑删除
	Integer deleteFalse(String[]  ids);
	
	List<SysMenuEntity>  getExctList(SysMenuEntity  sysMenuEntity);
	
	List<SysMenuEntity> getMenuByRoles(String userId);
	
	
	void insertRoleMenu(@Param("roleId")String roleId,@Param("menuId")String menuId);
	
	void deleteRoleMenuByMenuId(String menuId);
	
	
	List<String>  getMenuIdListByRoleIds(List<String> roleIds);
	
}